from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
from zope.app.schema.vocabulary import IVocabularyFactory
from zope.interface import implements
from my315ok.xtinfocontent import xtinfocontentMessageFactory as _

class_unit=[
('chuzu','chuzu',_(u'chuzu')),
('qiugou','qiugou',_(u'qiugou')),
('qiuzu','qiuzu',_(u'qiuzu')),
('zhuanrang','zhuanrang',_(u'zhuanrang')),
('chushou','chushou',_(u'chushou')),
('qita','qita',_(u'qita')),
  ]
class_terms = [
    SimpleTerm(value, token, title) for value, token, title in class_unit
]
navtag=[
('xt','xtlocal',_(u'xtlocal')),
('cn','china',_(u'china')),
('hn','hunan',_(u'hunan')),
('newsmedia','newsmedia',_(u'newsmedia')),
('admedia','admedia',_(u'admedia')),
('admake','admake',_(u'admake')),
('yanyiqingdian','yanyiqingdian',_(u'yanyiqingdian')),
('hunshayinglou','hunshayinglou',_(u'hunshayinglou')),
('hunqinggongsi','hunqinggongsi',_(u'hunqinggongsi')),
('jiazhuangdian','jiazhuangdian',_(u'jiazhuangdian')),
('jiancaidian','jiancaidian',_(u'jiancaidian')),
('qita','qita',_(u'qita')),
  ]
navtag_terms = [
    SimpleTerm(value, token, title) for value, token, title in navtag
]
position=[
('tl','topleft',_(u'top_left')),
('tr','topright',_(u'top_right')),
('tc','topcenter',_(u'top_center')),
('ml','middleleft',_(u'middle_left')),
('mr','middleright',_(u'middle_right')),
('mc','middlecenter',_(u'middle_center')),
('bl','bottomleft',_(u'bottom_left')),
('br','bottomright',_(u'bottom_right')),
('bc','bottomcenter',_(u'bottom_center')),
  ]
position_terms = [
    SimpleTerm(value, token, title) for value, token, title in position
]


class ClassinfoCategoryVocabulary(object):
    
    """ Ad Unit sizes """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(class_terms)


ClassinfoCategoryVocabularyFactory = ClassinfoCategoryVocabulary()

class AdPositionVocabulary(object):
    
    """ Ad position """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(position_terms)


AdPositionVocabularyFactory = AdPositionVocabulary()

class NavTagVocabulary(object):
    
    """ navlink tag """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(navtag_terms)
Gender=[
('male','male',_(u'male')),
('female','female',_(u'female')),
  ]
Gender_terms = [
    SimpleTerm(value, token, title) for value, token, title in Gender
] 
Title=[
('male','male',_(u'gentleman')),
('female','female',_(u'lady')),
  ]
Title_terms = [
    SimpleTerm(value, token, title) for value, token, title in Title
]    
WeddingStatus=[
('married','married',_(u'married')),
('unmarried','unmarried',_(u'unmarried')),
('divorced','divorced',_(u'divorced')),
('widowed','widowed',_(u'widowed')),
('qita','qita',_(u'qita')),
  ]
WeddingStatus_terms = [
    SimpleTerm(value, token, title) for value, token, title in WeddingStatus
]
Goal=[
('marriage-seeking','marriage-seeking',_(u'marriage-seeking')),
('mkfriends','mkfriends',_(u'mkfriends')),
('lover','lover',_(u'lover')),
('qita','qita',_(u'qita')),
  ]
Goal_terms = [
    SimpleTerm(value, token, title) for value, token, title in Goal
]    
HouseStatus=[
('own','own',_(u'own')),
('zufang','zufang',_(u'zufang')),
('togetherparents','togetherparents',_(u'togetherparents')),
('qita','qita',_(u'qita')),
  ]
HouseStatus_terms = [
    SimpleTerm(value, token, title) for value, token, title in HouseStatus
]
EducationStatus=[
('mid-school','mid-school',_(u'middle school')),
('height-school','height-school',_(u'height school')),
('college','college',_(u'college')),
('bachelor','bachelor',_(u'bachelor')),
('master','master',_(u'master')),
('doctor','doctor',_(u'doctor')),
  ]
EducationStatus_terms = [
    SimpleTerm(value, token, title) for value, token, title in EducationStatus
]
WorkStatus=[
('full-time','full-time',_(u'full time')),
('part-time','part-time',_(u'part time')),
('self-employed','self-employed',_(u'self-employed')),
('unemployment','unemployment',_(u'unemployment')),
('student','student',_(u'student')),
('boss','boss',_(u'boss')),
('other','other',_(u'other')),
  ]
WorkStatus_terms = [
    SimpleTerm(value, token, title) for value, token, title in WorkStatus
]
WorkPosition=[
('None','None',_(u'None')),
('base-level','base-level',_(u'base level')),
('mid-level','mid-level',_(u'middle level')),
('height-level','height-level',_(u'height level')),
  ]
WorkPosition_terms = [
    SimpleTerm(value, token, title) for value, token, title in WorkPosition
]
WorkTitle=[
('officer','officer',_(u'officer')),
('manager','manager',_(u'manager')),
('technician','technician',_(u'technician')),
('marketer','marketer',_(u'marketer')),
('self-employed','self-employed',_(u'self employed')),
('student','student',_(u'student')),
('servant','servant',_(u'civil servant')),
('teacher','teacher',_(u'teacher')),
('entrepreneur','entrepreneur',_(u'entrepreneur')),
('secrecy','secrecy',_(u'secrecy')),
  ]
WorkTitle_terms = [
    SimpleTerm(value, token, title) for value, token, title in WorkTitle
]

WorkCategory=[
('computer','computer',_(u'computer IT')),
('home-electron','home-electron',_(u'home electron')),
('ptcommunication','ptcommunication',_(u'post and tele-communication')),
('real-estate','real-estate',_(u'real estate')),
('publicity','publicity',_(u'publicity summary')),
('research','research',_(u'research institutions')),
('aabt','aabt',_(u'aabt')),
('pgovernment','pgovernment',_(u'party and government organizations')),
('military','military',_(u'military fire service')),
('public-security','public-security',_(u'public security and judicial administration')),
('culture','culture',_(u'culture and education')),
('commercial','commercial',_(u'commercial trade')),
('energy','energy',_(u'energy and power')),
('machine','machine',_(u'machine manufacture')),
('service','service',_(u'service industry')),
('finance','finance',_(u'finance industry')),
('securities','securities',_(u'securities industry')),
('insurance','insurance',_(u'insurance industry')),
('traffic','traffic',_(u'traffic industry')),
('sports','sports',_(u'sports industry')),
('metallurgy','metallurgy',_(u'metallurgy industry')),
('chemical','chemical',_(u'chemical industry')),
('agriculture','agriculture',_(u'agriculture industry')),
('other','other',_(u'other')),
  ]
WorkCategory_terms = [
    SimpleTerm(value, token, title) for value, token, title in WorkCategory
]
BodyHeight=[
('less155','less155',_(u'less155')),
('btn155-160','btn155-160',_(u'btn155-160')),
('btn160-165','btn160-165',_(u'btn160-165')),
('btn165-170','btn165-170',_(u'btn165-170')),
('btn170-175','btn170-175',_(u'btn170-175')),
('btn175-185','btn175-185',_(u'btn175-185')),
('more185','more185',_(u'more185')),
('secrecy','secrecy',_(u'secrecy')),
  ]
BodyHeight_terms = [
    SimpleTerm(value, token, title) for value, token, title in BodyHeight
]
BodyWeight=[
('less35','less35',_(u'less35')),
('btn35-45','btn35-45',_(u'btn35-45')),
('btn45-55','btn45-55',_(u'btn45-55')),
('btn55-65','btn55-65',_(u'btn55-65')),
('btn65-75','btn65-75',_(u'btn65-75')),
('btn75-85','btn75-85',_(u'btn75-85')),
('more85','more85',_(u'more85')),
('secrecy','secrecy',_(u'secrecy')),
  ]
BodyWeight_terms = [
    SimpleTerm(value, token, title) for value, token, title in BodyWeight
]
Animal=[
('mouse','mouse',_(u'mouse')),
('cattle','cattle',_(u'cattle')),
('tiger','tiger',_(u'tiger')),
('hare','hare',_(u'hare')),
('dragon','dragon',_(u'dragon')),
('snake','snake',_(u'snake')),
('horse','horse',_(u'horse')),
('sheep','sheep',_(u'sheep')),
('monkey','monkey',_(u'monkey')),
('chicken','chicken',_(u'chicken')),
('dog','dog',_(u'dog')),
('pig','pig',_(u'pig')),
('secrecy','secrecy',_(u'secrecy')),
  ]
Animal_terms = [
    SimpleTerm(value, token, title) for value, token, title in Animal
]
Cosstellation=[
('Aries','Aries',_(u'Aries')),
('taurus','taurus',_(u'taurus')),
('Gemini','Gemini',_(u'Gemini')),
('Cancer','Cancer',_(u'Cancer')),
('leo','leo',_(u'leo')),
('virgin','virgin',_(u'virgin')),
('libra','libra',_(u'libra')),
('Acrab','Acrab',_(u'Acrab')),
('sagittarius','sagittarius',_(u'sagittarius')),
('Capricornus','Capricornus',_(u'Capricornus')),
('aquarius','aquarius',_(u'aquarius')),
('Pisces','Pisces',_(u'Pisces')),
('secrecy','secrecy',_(u'secrecy')),
  ]
Cosstellation_terms = [
    SimpleTerm(value, token, title) for value, token, title in Cosstellation
]
BloodGroup=[
('A','A',_(u'A model')),
('B','B',_(u'B model')),
('AB','AB',_(u'AB model')),
('O','O',_(u'O model')),
('secrecy','secrecy',_(u'secrecy')),
  ]
BloodGroup_terms = [
    SimpleTerm(value, token, title) for value, token, title in BloodGroup
]
Salary=[
('less1000','less1000',_(u'less1000')),
('btn1000-2000','btn1000-2000',_(u'btn1000-2000')),
('btn2000-3000','btn2000-3000',_(u'btn2000-3000')),
('btn3000-4000','btn3000-4000',_(u'btn3000-4000')),
('btn4000-5000','btn4000-5000',_(u'btn4000-5000')),
('btn5000-7500','btn5000-7500',_(u'btn5000-7500')),
('btn75000-10000','btn75000-10000',_(u'btn75000-10000')),
('more10000','more10000',_(u'more10000')),
('secrecy','secrecy',_(u'secrecy')),
  ]
Salary_terms = [
    SimpleTerm(value, token, title) for value, token, title in Salary
]
Polity=[
('league-member','league-member',_(u'league member')),
('party-member','party-member',_(u'party member')),
('people','people',_(u'people')),
  ]
Polity_terms = [
    SimpleTerm(value, token, title) for value, token, title in Polity
]
Types=[
('residential','residential',_(u'residential building')),
('office','office',_(u'office building')),
('shopfront','shopfront',_(u'shopfront')),
('both','both',_(u'shop and reside')),
('other','other',_(u'other')),
  ]
Types_terms = [
    SimpleTerm(value, token, title) for value, token, title in Types
]

Decorations=[
('undecorated','undecorated',_(u'undecorated')),
('common','common',_(u'common')),
('midscale','midscale',_(u'midscale')),
('upscale','upscale',_(u'upscale')),
('luxury','luxury',_(u'luxury')),
  ]
Decorations_terms = [
    SimpleTerm(value, token, title) for value, token, title in Decorations
]
RoomsType=[
('4s2t2w','4s2t2w',_(u'4shi2ting2wei')),
('4s2t1w','4s2t1w',_(u'4shi2ting1wei')),
('4s1t1w','4s1t1w',_(u'4shi1ting1wei')),
('3s2t2w','3s2t2w',_(u'3shi2ting2wei')),
('3s2t1w','3s2t1w',_(u'3shi2ting1wei')),
('3s1t1w','3s1t1w',_(u'3shi1ting1wei')),
('2s2t1w','2s2t1w',_(u'2shi2ting1wei')),
('2s1t1w','2s1t1w',_(u'2shi1ting1wei')),
('1s1t1w','1s1t1w',_(u'1shi1ting1wei')),
('single','single',_(u'single room')),
('shop','shop',_(u'shopfront')),
('office','office',_(u'office room')),
('both','both',_(u'shop and reside')),
('other','other',_(u'other')),
  ]
RoomsType_terms = [
    SimpleTerm(value, token, title) for value, token, title in RoomsType
]
PubCategory=[
('pinke','pinke',_(u'pin ke')),
('bianmin','bianmin',_(u'bian min')),
('qiuzhu','qiuzhu',_(u'qiu zhu')),
('dajiashuo','dajiashuo',_(u'da jia shuo')),
('other','other',_(u'other')),
  ]
PubCategory_terms = [
    SimpleTerm(value, token, title) for value, token, title in PubCategory
]
   
class GenderVocabulary(object):
    
    """ gender vacabulary """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Gender_terms) 
     
class TitleVocabulary(object):
    
    """ Title vacabulary """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Title_terms)  
    
class WeddingStatusVocabulary(object):
    
    """WeddingStatus """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(WeddingStatus_terms)    
    
class GoalVocabulary(object):
    
    """ GoalVocabularyFactory """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Goal_terms)    
    
class HouseStatusVocabulary(object):
    
    """ HouseStatus """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(HouseStatus_terms)    
    
class EducationStatusVocabulary(object):
    
    """ EducationStatus """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(EducationStatus_terms)
class WorkStatusVocabulary(object):
    
    """WorkStatus """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(WorkStatus_terms)    
class WorkPositionVocabulary(object):
    
    """WorkPosition """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(WorkPosition_terms)    
class WorkTitleVocabulary(object):
    
    """WorkTitle """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(WorkTitle_terms) 
class WorkCategoryVocabulary(object):
    
    """WorkCategory """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(WorkCategory_terms)    
class BodyHeightVocabulary(object):
    
    """BodyHeight """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(BodyHeight_terms) 
class BodyWeightVocabulary(object):
    
    """BodyWeight """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(BodyWeight_terms)    
class AnimalVocabulary(object):
    
    """Animal """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Animal_terms)    
class CosstellationVocabulary(object):
    
    """Cosstellation"""

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Cosstellation_terms)     
class BloodGroupVocabulary(object):
    
    """BloodGroup """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(BloodGroup_terms)     
class SalaryVocabulary(object):
    
    """Salary """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Salary_terms) 
class PolityVocabulary(object):
    
    """Polity """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Polity_terms)             
class TypesVocabulary(object):
    
    """TypesVocabulary """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Types_terms) 
class DecorationsVocabulary(object):
    
    """ Decorations """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(Decorations_terms)     
class RoomsTypeVocabulary(object):
    
    """ RoomsType """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(RoomsType_terms) 
class PubCategoryVocabulary(object):
    
    """ PubCategory """

    implements(IVocabularyFactory)

    def __call__(self, context):
        return SimpleVocabulary(PubCategory_terms)               

NavTagVocabularyFactory = NavTagVocabulary()
GenderVocabularyFactory = GenderVocabulary()
GenderVocabularyFactory = TitleVocabulary()
WeddingStatusVocabularyFactory = WeddingStatusVocabulary()
GoalVocabularyFactory = GoalVocabulary()
HouseStatusVocabularyFactory = HouseStatusVocabulary()
EducationStatusVocabularyFactory = EducationStatusVocabulary()
WorkStatusVocabularyFactory = WorkStatusVocabulary()
WorkPositionVocabularyFactory = WorkPositionVocabulary()
WorkTitleVocabularyFactory = WorkTitleVocabulary()
WorkCategoryVocabularyFactory = WorkCategoryVocabulary()
BodyHeightVocabularyFactory = BodyHeightVocabulary()
BodyWeightVocabularyFactory = BodyWeightVocabulary()
AnimalVocabularyFactory = AnimalVocabulary()
CosstellationVocabularyFactory = CosstellationVocabulary()
BloodGroupVocabularyFactory = BloodGroupVocabulary()
SalaryVocabularyFactory = SalaryVocabulary()
PolityVocabularyFactory = PolityVocabulary()
DecorationsVocabularyFactory = DecorationsVocabulary()
TypesVocabularyFactory = TypesVocabulary()
RoomsTypeVocabularyFactory = RoomsTypeVocabulary()
PubCategoryVocabularyFactory = PubCategoryVocabulary()

